﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoachingOrganizer.Logic.Models.Tools.MoodLevel
{
    public class MoodValueCacheModel
    {
        private readonly DateTime _time;
        private double? _value;

        public DateTime Time
        {
            get { return _time; }
        }

        public double? Value
        {
            get { return _value; }
            set
            {
                _value = value;
                UpdateDataModelDelegate(value);
            }
        }

        internal Action<double?> UpdateDataModelDelegate;

        public MoodValueCacheModel(DateTime time)
        {
            _time = time;
        }
    }
}
